package model;

import java.io.Serializable;

public class Driver implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private String name;
	private String address;
	private DriverLicense driverLicence;

	public Driver(DriverLicense driverLicence, String name, String address) {
		this.name = name;
		this.address = address;
		this.driverLicence = driverLicence;
	}

	@Override
	public String toString() {
		return "(" + this.driverLicence.getRegister() + ")" + this.name;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public DriverLicense getDriverLicence() {
		return driverLicence;
	}

	public void setDriverLicence(DriverLicense driverLicence) {
		this.driverLicence = driverLicence;
	}

}
